<template>
  <div>test</div>

  <div>
    {{ data }}
  </div>
</template>

<script lang="ts" setup>
/**
 * 1. useFetch
 * 2. useAsyncData
 * 3. $fetch
 */

const { data } = useFetch("/api/hello", {
  // 是否启用服务端调用，默认为 true
  server: false,
});
</script>
